<div class="main_body">
    <?php echo $this->element('main_menu')?>		
	<div id="main_body_content">
	
	
		<div class="orders form">
			<h1><?php __("Reports");?></h1>
			<?php 
				echo $javascript->codeBlock("
					$(document).ready(function() {
						$( \"#ReportsDateFrom\" ).datepicker({showButtonPanel: true, dateFormat: 'mm-dd-yy',showWeek: true,firstDay:1});
						$( \"#ReportsDateTo\" ).datepicker({showButtonPanel: true, dateFormat: 'mm-dd-yy',showWeek: true,firstDay:1});	
					});
					",$options = array('allowCache'=>true,'safe'=>true,'inline'=>false));
			?>
			<?php echo $this->Form->create('Reports',array('url'=>array('action'=>'generate')));?>
				<fieldset>
			 		<legend><?php __("Generate report for"); ?></legend>
				<?php
					echo $this->Form->input('report_type',array('options'=>$definde_reports));
					echo $this->Form->input('date_from');
					echo $this->Form->input('date_to');
				?>
				<table></table>
				</fieldset>
			<?php echo $this->Form->end(__("Submit", true));?>
		</div>
		
		<div class="clr"></div>	
	</div>		
	<?php echo $this->element('languages')?>	
	<div class="clr"></div>
	<br/>
</div>	
<div class="clr"></div>	
<div class="main_action">
	<div class="main_action_content">
	
		<div class="actions">
			<?php if($session->read('Auth.User.group') == 'admin' || $session->read('Auth.User.group') == 'manag'){?>
			<h3><?php __("Actions"); ?></h3>
			<ul>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_orders_add.png'), array('controller' => 'orders', 'action' => 'add'),array('escape'=>false,'title'=>__("New Order", true))); ?><div class="clr"></div>	 <?php echo __("New Order", true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_customers.png'), array('controller' => 'customers','action' => 'index'),array('escape'=>false,'title'=>__("List Customers",true)));?><div class="clr"></div>	<?php echo __("List Customers",true)?></li>				
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_services.png'), array('controller' => 'type_of_services', 'action' => 'index'),array('escape'=>false,'title'=>__("List Type Of Services",true))); ?><div class="clr"></div> <?php echo __("List Type Of Services",true)?> </li>				
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_spaces.png'), array('controller' => 'types_of_spaces', 'action' => 'index'),array('escape'=>false,'title'=>__("List Types Of Spaces", true))); ?> <div class="clr"></div>	<?php echo __("List Types Of Spaces", true)?></li>				
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_employees.png'), array('controller' => 'employees', 'action' => 'index'),array('escape'=>false,'title'=>__("List Employees", true))); ?> <div class="clr"></div> <?php echo __("List Employees", true)?></li>
				
			</ul>
			<?php }?>
		</div>
		
		<div class="clr"></div>
	</div>		
</div>		
